(function (Alert, $) {
// 失败模板
    Alert.error = function (msg,s,timer) {
        $('#tip').remove();
        let html = `<div id="tip" class="alert alert-danger alert-dismissable fade in" data-dismiss="alert" role="alert">
    <button class="close" type="button">×</button>
            ${msg}
</div>`;
        $(s).append(html);
        $('#tip').fadeOut(timer);
    };
})((window.Alert = {}), $);
